package com.kingyea.app.market.file.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * @author CXC
 * @version v1.0.0
 * @description File 实体类
 * @date Created in 2018-03-22 16:52:23
 */
public class File implements Serializable {

    /**
     * 系统序号 1应用市场 2移动开发平台
     */
    private Integer sys;
    /**
     * 模块序号 3应用图标模块 2应用展示图片模块 1app应用模块
     */
    private Integer module;
    /**
     * 目标主键
     */
    private String keyId = "-1";
    /**
     * 新文件名，唯一
     */
    private String keyName;
    /**
     * 上传的文件名称
     */
    private String oldName;
    /**
     * 文件存储主机端口
     */
    private String host;
    /**
     * 文件定位路径
     */
    private String url;
    /**
     * 文件后缀名
     */
    private String sufName;
    /**
     * 文件大小单位k
     */
    private Integer fileSize;
    /**
     * 创建时间
     */
    private Date createDate;

    public String getFileUri() {
        return new StringBuilder().append(this.getHost()).append(this.getUrl()).append(this.getKeyName()).toString();
    }

    public Integer getSys() {
        return this.sys;
    }

    public void setSys(Integer sys) {
        this.sys = sys;
    }

    public Integer getModule() {
        return this.module;
    }

    public void setModule(Integer module) {
        this.module = module;
    }

    public String getKeyId() {
        return keyId;
    }

    public void setKeyId(String keyId) {
        this.keyId = keyId;
    }

    public String getKeyName() {
        return this.keyName;
    }

    public void setKeyName(String keyName) {
        this.keyName = keyName;
    }

    public String getOldName() {
        return this.oldName;
    }

    public void setOldName(String oldName) {
        this.oldName = oldName;
    }

    public String getHost() {
        return this.host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSufName() {
        return this.sufName;
    }

    public void setSufName(String sufName) {
        this.sufName = sufName;
    }

    public Integer getFileSize() {
        return this.fileSize;
    }

    public void setFileSize(Integer fileSize) {
        this.fileSize = fileSize;
    }

    public Date getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }


}
